<template>
    <div class="zw-detail-block">
        <div class="top">
            <div class="title">{{ title }}</div>
            <div class="buttons">
                <slot name="buttons"></slot>
            </div>
        </div>
        <div class="middle">
            <slot></slot>
        </div>
    </div>
</template>
<script lang="ts" setup>
defineProps<{
    title: string
}>();
</script>
<style lang="scss" scope>
.zw-detail-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    // border: 1px solid v.$border-color;
    // padding: 4px;
    // margin: 4px;

    .top {
        height: 36px;
        width: 100%;
        display: flex;
        align-items: center;
        flex-shrink: 0;


        .title {
            background-color: v.$primary-color;
            color: #fff;
            padding: 0px 12px;
            font-size: 18px;
            font-weight: 600;
            line-height: 36px;
            // color: v.$primary-color;
            // border-left: 4px solid v.$color-border;
        }

        .buttons {
            margin-left: 8px;
        }
    }

    .middle {
        flex: 1;
        margin-top: 12px;
    }
}
</style>